package com.mzpai.product.service.impl;
import java.util.HashMap;
import java.util.Map;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.mzpai.product.mapper.StoreUserSeckillCollectMapper;
import com.mzpai.product.model.StoreUserSeckillCollect;
import com.mzpai.product.service.StoreUserSeckillCollectService;
import com.mzpai.service.impl.BaseServiceImpl;

@Service
public class StoreUserSeckillCollectServiceImpl extends BaseServiceImpl<StoreUserSeckillCollect> implements StoreUserSeckillCollectService {

	Logger logger = LoggerFactory.getLogger(StoreUserSeckillCollectServiceImpl.class);

	@Autowired 
	private StoreUserSeckillCollectMapper storeUserSeckillCollectMapper;

	@Override
	public Integer countWantTotal(Integer storeId,Integer productAttrvalueId) {
		
		Map<String, Object> queryMap=new HashMap<String, Object>();
		queryMap.put("storeId", storeId);
		queryMap.put("productAttrvalueId", productAttrvalueId);
		Integer count=storeUserSeckillCollectMapper.countWantTotal(queryMap);
		return count;
	}

	
	
}